package salary

type ServiceChargeTransaction struct {
	MemberId int
	Date     string
	Amount   float64
}

func (s *ServiceChargeTransaction) Execute() {
	e := GetDB().GetEmployee(s.MemberId)
	affiliation := e.Affiliation
	u := affiliation.GetUnionAffiliation()
	u.ServiceCharges = append(u.ServiceCharges, ServiceCharge{s.Date, s.Amount})
}
